package xyj.sparrow.scheduler.cron.ops;

import xyj.sparrow.scheduler.cron.Cron;

import java.util.List;

/**
 * cron操作接口
 *
 * @author 江南小俊
 * @since 2021/6/22
 **/
public interface CronOps {

    void removeByTaskIds(List<String> taskIds);

    void removeByAppIds(List<String> appIds);

    void addCron(Cron cron);

    void updateCron(Cron cron);

    void batchUpdateCronByAppId(List<String> appIds);

    void batchUpdateCronByTask(List<String> taskIds);

    void runCronByTask(String taskId);
}
